package cn.org.donald.sensitive;

import cn.org.donald.sensitive.model.FactoryEnum;
import cn.org.donald.sensitive.model.FindStringRegex;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Donald
 * @since 2023-11-10 13:42:36
 **/
public class Tests {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add(FindStringRegex.IDENTIFY_CARD);
        Path filePath = Paths.get("D:\\develop\\sensitive\\1.pdf");
        List<String> sensitiveString = FactoryEnum.getInstance(filePath).getSensitiveString(list);
        System.out.println("敏感字符：【");
        sensitiveString.forEach(System.out::println);
        System.out.println("】");
    }
}
